
1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-03-11 19:53:25
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 871
Content-Uncompressed-Length: 1510

LZ4. 	11.3.2022 	19:53:25 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	11.3.2022 	19:53:25 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	11.3.2022 	19:53:25 	lx 	(4. palvelin)

  database connect time: 0.0034 seconds. 	11.3.2022 	19:53:25 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	11.3.2022 	19:53:25 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	11.3.2022 	19:53:25 	_arr apCheck 	(4. palvelin)

 1. answer time: 00:00:00.10906
  
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	11.3.2022 	19:53:25 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	11.3.2022 	19:55:42 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 75, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

closing socket '75'. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

closing socket '76'. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          8
poll.fd_count:        1
pollCount:            4629128
pollInCount:          9
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   8471
totalBytesSent:       18595. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 80
. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

closing socket '80'. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0131b5fa10. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0131b5fa10, size: 400. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

--- server stopped ---. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0131b5fa10. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

quit program: close all sockets. 	11.3.2022 	19:55:42 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	11.3.2022 	19:55:42 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

  database connect time: 0.0201 seconds. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	11.3.2022 	20:33:06 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	11.3.2022 	20:33:06 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

  database connect time: 0.0189 seconds. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0123c635b0, size: 400. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

All plugins have been loaded. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

--- server started in 0.0762 seconds, plugins loaded in 0.0177 seconds, 2022-03-11 20:33:08, used memory 3169.1 kb --- 	 7. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	11.3.2022 	20:33:08 	lx 	(4. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

closing socket '72'. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

closing socket '73'. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            1904
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

--- server stopped ---. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0123c635b0. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

quit program: close all sockets. 	11.3.2022 	20:33:49 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

  database connect time: 0.0424 seconds. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	11.3.2022 	20:49:13 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	11.3.2022 	20:49:13 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

  database connect time: 0.0143 seconds. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01161c9130, size: 400. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

All plugins have been loaded. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

--- server started in 0.1365 seconds, plugins loaded in 0.0249 seconds, 2022-03-11 20:49:15, used memory 3162.1 kb --- 	 7. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	11.3.2022 	20:49:15 	lx 	(4. palvelin)

Myyntirivin päiväys on liian pieni: 00.00.0000, T171004/01, RÄÄ EYP H. 	11.3.2022 	20:50:45 	prnc_SaldoSorArrFill 	(8. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, T171005/01, RÄÄ EYP H. 	11.3.2022 	20:50:45 	prnc_SaldoSorArrFill 	(8. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, T171012/01, RÄÄ EYP H. 	11.3.2022 	20:50:45 	prnc_SaldoSorArrFill 	(8. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, T171004/01, RÄÄ EYP H. 	11.3.2022 	20:51:24 	prnc_SaldoSorArrFill 	(8. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, T171005/01, RÄÄ EYP H. 	11.3.2022 	20:51:24 	prnc_SaldoSorArrFill 	(8. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, T171012/01, RÄÄ EYP H. 	11.3.2022 	20:51:24 	prnc_SaldoSorArrFill 	(8. Tuotetilannelaskenta)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

closing socket '72'. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

closing socket '73'. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            6112
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

--- server stopped ---. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01161c9130. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

quit program: close all sockets. 	11.3.2022 	20:51:30 	lx 	(4. palvelin)

